from ultralytics import YOLO
# if __name__ == '__main__':
#     model = YOLO(r'yolo11n-pose.pt')
#     result = model.train50(data=r'C:\Users\15123\Desktop\YOLO\yolo11-pose\ball_pose.yaml', epochs=10, device=0, batch=4)
#     print(result)

# if __name__ == '__main__':
#     model = YOLO(r'C:\Users\15123\Desktop\YOLO\yolo11-pose\runs\pose\train5\weights\best.pt')
#     result = model.val(data=r'C:\Users\15123\Desktop\YOLO\yolo11-pose\ball_pose.yaml')
#     print(result)

# if __name__ == '__main__':
#     model = YOLO(r'C:\Users\15123\Desktop\YOLO\yolo11-pose\runs\pose\train5\weights\best.pt')
#     result = model.predict(source=r'C:\Users\15123\Desktop\YOLO\yolo11-pose\datasets\Tennis Pose Detection.v2i.yolov8\train50\images\B_001_jpeg.rf.4b690c10db602b77ea4378fadd3ad7bb.jpg', save=True)
#     print(result)

# if __name__ == '__main__':
#     model = YOLO(r'/yolo11test/runs/segment/seg50\weights\best.pt')
#     result = model.export(format='onnx')
#     print(result)